<UserControl x:Class="SD.Samples.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"     
    xmlns:navigationCore="clr-namespace:System.Windows.Navigation;assembly=System.Windows.Controls.Navigation"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" mc:Ignorable="d"
    d:DesignWidth="640" d:DesignHeight="300">

    <Grid Style="{StaticResource LayoutRootGridStyle}">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <Border Style="{StaticResource NavLinksBorderStyle}">
            <StackPanel x:Name="LinksStackPanel" Style="{StaticResource LinksStackPanelStyle}">
                <HyperlinkButton Style="{StaticResource LinkStyle}" NavigateUri="Home" TargetName="ContentFrame" Content="home" />
                <HyperlinkButton Style="{StaticResource LinkStyle}" NavigateUri="About" TargetName="ContentFrame" Content="about" />
            </StackPanel>
        </Border>

        <Border Style="{StaticResource NavBrandingBorderStyle}" Grid.Row="1">
            <StackPanel Style="{StaticResource NavBrandingStackPanelStyle}" >
                <TextBlock Style="{StaticResource ApplicationNameStyle}" Text="SILVERDIAGRAM" />
                <ContentControl Style="{StaticResource NavLogoIcon}" Content="Sample Browser" />
            </StackPanel>
        </Border>

        <Border Style="{StaticResource NavContentBorderStyle}" Grid.Row="2">
            <navigation:Frame x:Name="ContentFrame" Style="{StaticResource NavContentFrameStyle}" Navigated="ContentFrame_Navigated" NavigationFailed="ContentFrame_NavigationFailed">
                <navigation:Frame.UriMapper>
                    <navigationCore:UriMapper>
                        <navigationCore:UriMapping Uri="" MappedUri="/Views/Home.xaml" />
                        <navigationCore:UriMapping Uri="Home" MappedUri="/Views/Home.xaml" />
                        <navigationCore:UriMapping Uri="About" MappedUri="/Views/About.xaml" />
                        <navigationCore:UriMapping Uri="Samples/{Sample}" MappedUri="/Views/Samples.xaml?Sample={Sample}" />
                    </navigationCore:UriMapper>
                </navigation:Frame.UriMapper>
            </navigation:Frame>
        </Border>
    </Grid>
</UserControl>